{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}数据库维护
{% endblock %}

{% block content %}
<form class="form-inline" id="db" name="db" action="" method="post">
    {{ wtf.quick_form(form) }}
</form>
<br><br>

<table class="table table-bordered">
    <tr>
        <th>数据库ID</th>
        <th>数据库编码</th>
        <th>数据库描述</th>
        <th>数据库驱动类型</th>
        <th>数据库所有者</th>
    </tr>
        {% for i in json_data %}
            <tr>

                <td>{{ i.get('id') }}</td>
                <td><a href="web_db_table_relate?db_id={{ i.get('id') }}">{{ i.get('db_name') }}</a></td>
                <td>{{ i.get('db_describe') }}</td>
                <td>{{ i.get('db_driver_name') }}</td>
                <input type="hidden" name="db_driver_code"></input>
                <td>{{ i.get('owner_name') }}</td>

                <td><input type="button" onclick="location.href='web_dim_db_modify?id={{ i.get('id') }}&db_name={{ i.get('db_name') }}&db_driver_id={{ i.get('db_driver_id') }}&db_describe={{ i.get('db_describe') }}&product_id={{ i.get('product_id') }}&is_valid=0'" value="删除"></input></td>

            </tr>

    {% endfor %}
    </table>
{% endblock %}
